<!DOCTYPE html>
<html lang="zh">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta charset="utf-8" />
    <title>找回登录密码</title>
    <meta name="description" />
    <meta name="keywords" />
    <link href="/favicon.ico" rel="shortcut icon" type="image/x-icon" />
    <meta name="viewport" content="width=device-width"/>
    <meta http-equiv="Cache-control" content="no-transform" />


        <link href="/bootcss/home/Css/base.css" type="text/css" rel="stylesheet">

    

    


</head>
<body>
    <script type="text/javascript">
        var reg = new RegExp("www.zyctd.com");
        if (reg.test(window.location.host)) {
            var mobileAgent = new Array("iphone", "ipod", "ipad", "android", "mobile", "blackberry", "webos", "incognito", "webmate", "bada", "nokia", "lg", "ucweb", "skyfire");
            var browser = navigator.userAgent.toLowerCase();
            var isMobile = false;
            for (var i = 0; i < mobileAgent.length; i++) {
                if (browser.indexOf(mobileAgent[i]) != -1) {
                    isMobile = true;
                    //alert(mobileAgent[i]);
                    location.href = window.location.href.replace("www.","m.");
                    break;
                }
            }
        }
    </script>



    <div id="body">
        
        <section class="content-wrapper main-content clear-fix">

            

<link type="text/css" href="/bootcss/home/Css/webpage.css" rel="stylesheet" />

<div class="webpageTop">
    <div class="webpageHead rel">
        <a href="http://www.zyctd.com/" target="_blank"><img src="/bootcss/home/Picture/webpage_logo2.png" /></a>
        <span class="vm f24 yahei title">找回密码</span>
        <a href="http://www.zyctd.com/" target="_blank" class="siteHome abs">天地网首页</a>
    </div>
</div>

<div class="bg ovh">
    <input type="hidden" id="txtUserName" />
    <input type="hidden" id="txtSMSMobile" />
    <div class="pageBody stepOuter">

        <ul class="stepBox yahei">
            <li>
                <em class="n">1</em><span class="ml10">验证身份</span>
            </li>
            <li class="now">
                <em class="n">2</em><span class="ml10">设置新密码</span>
            </li>
        </ul>
    <form action="{{url('/home/register/dofindpass')}}" method="post">{{csrf_field()}}
        <div class="registerForm">
            <dl>
                <dt>
                    <span>新密码：</span>
                </dt>
                <dd>
                    <input type="password" name="password" class="txt" id="txtPassword" maxlength="16" />
                    <span></span>
                    <input type="hidden" name='id' value="{{$id}}">
                    
                </dd>
            </dl>
            <dl>
                <dt>
                    <span>重复新密码：</span>
                </dt>
                <dd>
                    <input type="password" name="repassword" class="txt" id="txtConfirmPassword" maxlength="16" />
                    <span></span>
                </dd>
            </dl>
            <dl class="pt30">
                <dt>
                    <span>&nbsp;</span>
                </dt>
                <dd>
                    <p class="mt30">
                        <input type="hidden" id="txtMobile" value="" />
                        <input type="hidden" id="txtSMSVCode" value="" />
                        <button type="submit" href="javascript:void(0);" class="formBtn regBtn f14 b" id="nextStep">设置新密码</button
                    </p>
                </dd>
            </dl>
        </div>
        </form>

    </div>
</div>

        </section>
    </div>

    
    <div class="webChat">
        <a class="online " href="http://wpa.b.qq.com/cgi/wpa.php?ln=1&amp;key=XzkzODA2MzQ2OF8zODg4NV80MDAwMDA4NTg1XzJf" target="_blank">
            <span>在线客服</span>
        </a>
        <a class="goTop " href="javascript:scroll(0,0)">
            <span>返回顶部</span>
        </a>
    </div>

        <script type="text/javascript" src="/bootcss/home/Scripts/jquery-1.11.1.js"></script>
        <script type="text/javascript" src="/bootcss/home/Scripts/zyclibjq.js"></script>
        <script type="text/javascript" src="/bootcss/home/Scripts/layer.min.js"></script>
        <script type="text/javascript" src="/bootcss/home/Scripts/jquery.history.js"></script>
        <script type="text/javascript" src="/bootcss/home/Scripts/tool.js"></script>
        <script type="text/javascript" src="/bootcss/home/Scripts/heartbeatjq.js"></script>
        <script type="text/javascript" src="/bootcss/home/Scripts/common.js"></script>
        <script type="text/javascript" src="/bootcss/home/Scripts/usersignout.js"></script>
        <script type="text/javascript" src="/bootcss/home/Scripts/forgetpsdstep2.js"></script>

    <script type="text/javascript">
        $(function () {
            ZYCLib.PlugIn.HeartBeatPackage.Start();
        });
    </script>
    <script type="text/javascript">
    (function() {
        ZYCLib.CurrentUser.PerID = 0;
    });
    </script>

    

    <div class="foot">
    <div class="footer">


        
<div class="bottomNav pt10">
    <a href="http://www.zyctd.com/Help/introduction" title="" rel="nofollow" target="_blank">公司简介</a>
    |
    <a href="http://www.zyctd.com/Help/DataService" title="" rel="nofollow" target="_blank">数据服务</a>
    |
    
    <a href="http://www.zyctd.com/Help/job" title="" rel="nofollow" target="_blank">诚聘英才</a>
    |
    <a href="http://www.zyctd.com/Help/contactUs" title="" rel="nofollow" target="_blank">联系我们</a>
    |
    <a href="http://www.zyctd.com/Help/law" title="" rel="nofollow" target="_blank">法律声明</a>
    |
    
    <a href="http://www.zyctd.com/Help/links" title=""  target="_blank">友情链接</a>
    |
    <a href="http://www.zyctd.com/Help/map" title=""  target="_blank">网站地图</a>
</div>
<div class="contact">
    <span class="vm dib">客服电话：400-000-8585（工作日 9：00-18：00）</span>&nbsp;
    <span class="vm dib">广告销售：028-68956970</span>&nbsp;
    <span class="vm dib">传真：028-66763511</span>&nbsp;
    <span class="vm dib">客服QQ：</span>
    <span class="vm dib pt10">
        
        <a href="http://wpa.b.qq.com/cgi/wpa.php?ln=1&amp;key=XzkzODA2MzQ2OF8zODg4NV80MDAwMDA4NTg1XzJf" target="_blank" class="QQLink"><img src="/bootcss/home/Picture/qq.png" alt="" /></a>
    </span>
</div>
<div class="comiis_Copyright ">
    互联网药品信息服务资格证:(川)-经营性-2014-0001&nbsp;增值电信业务经营许可证-川B2-20090195<br>
    <a href="http://www.miibeian.gov.cn/" rel="nofollow" target="_blank">蜀ICP备11007471号</a>&nbsp;Copyright &copy; 2008-2016 <a href="http://www.zyctd.com/" target="_blank">www.zyctd.com</a>,All Rights Reserved.<a href="http://www.zyctd.com/" target="_blank">中药材天地网</a> 版权所有
</div>
    </div>
</div>
<script>
    var _hmt = _hmt || [];
    (function () {
        var hm = document.createElement("script");
        hm.src = "//hm.baidu.com/hm.js?ba57c22d7489f31017e84ef9304f89ec";
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(hm, s);
    })();
</script>
<script type="text/javascript">var cnzz_protocol = (("https:" == document.location.protocol) ? " https://" : " http://"); document.write(unescape("%3Cspan style='display:none;' id='cnzz_stat_icon_1256168649'%3E%3C/span%3E%3Cscript src='" + cnzz_protocol + "s11.cnzz.com/z_stat.php%3Fid%3D1256168649' type='text/javascript'%3E%3C/script%3E"));</script>
<script>
    (function () {
        var bp = document.createElement('script');
        var curProtocol = window.location.protocol.split(':')[0];
        if (curProtocol === 'https') {
            bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';
        }
        else {
            bp.src = 'http://push.zhanzhang.baidu.com/push.js';
        }
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(bp, s);
    })();
</script>

<!--验证密码-->
<script type="text/javascript" src="/bootcss/home/Scripts/jquery-1.8.3.min.js"></script>
<script type="text/javascript">
        //全局变量 
    var CPASS = false;
      //绑定表单提交事件
    $('form').submit(function(){
        //触发所有的丧失焦点事件
        $('input').trigger('blur');
        //验证所有字段都正确 提交
        if(CPASS){
            //提交
            return true;
        }
        //阻止默认行为
        return false;
    })
    //密码绑定丧失焦点事件
    $('input[name=password]').blur(function(){
        //获取密码
        var pass = $(this).val();
        var reg = /^\w{6,18}$/;
        if(reg.test(pass)){
            //正确
            $(this).next().html('√').css('color','blue');
            $(this).css('border','1px solid blue');
            CPASS = true;
        }else{
            $(this).next().html('密码格式不正确').css('color','red');
            $(this).css('border','1px solid red');
            CPASS = false;
        }
    })

    //确认密码验证
    $('input[name=repassword]').blur(function(){
        //获取确认密码的值
        var repass = $(this).val();
        //获取密码的值
        var pass = $('input[name=password]').val();
        if(pass == ''){
            $(this).next().html('请先填写密码').css('color','red');
            $(this).css('border','1px solid red');
            CPASS = false;
            return;
        }

        //验证
        if(repass == pass){
            //正确
            $(this).next().html('√').css('color','blue');
            $(this).css('border','1px solid blue');
            CPASS = true;
        }else{
            $(this).next().html('两次密码不一致').css('color','red');
            $(this).css('border','1px solid red');
            CPASS = false;
        }
    })
</script>

</body>
</html>
